package com.lovo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lovo.bean.Supplier2;
import com.lovo.mapper.Supplier2Mapper;
import com.lovo.service.ISupplier2Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lovo
 * @since 2022-09-17
 */
@Service
public class Supplier2ServiceImpl extends ServiceImpl<Supplier2Mapper, Supplier2> implements ISupplier2Service {
    @Autowired
    private Supplier2Mapper supplier2Mapper;

    @Override
    public List<Supplier2> findByType(String sType) {
        QueryWrapper<Supplier2> qw = new QueryWrapper<>();
        qw.eq("s_type", sType);
        List<Supplier2> list = supplier2Mapper.selectList(qw);
        return list;
    }
}
